package com.wyl.service.impl;

import com.wyl.dao.StudentExamDao;
import com.wyl.pojo.Studentexam;
import com.wyl.service.StudentExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

    @Service
    public class StudentExamServiceImpl implements StudentExamService {
        @Autowired
        StudentExamDao studentExamDao;
        @Override
        public Integer addStudentExam(Studentexam studentexam) {
            return studentExamDao.addStudentExam(studentexam);
        }

        @Override
        public List<Studentexam> getstuExamList(Integer userid) {
            return studentExamDao.getStuPaperList(userid);
        }

        @Override
        public List<Studentexam> getIsPaper(Integer userid, Integer eid) {
            return studentExamDao.getIsPaper(userid,eid);
        }

        @Override
        public List<Studentexam> getAllStuScore(Integer classid) {
            return studentExamDao.getAllStuScore(classid);
        }
    }

